<?php
	global $_W,$_GPC;
	if($_W['role']&&$_W['isajax']){
		$mid = $_GPC['mid'];
		$data = array('name'=>$_GPC['menuname'],'font_color'=>$_GPC['font_color'],'url'=>$_GPC['menuurl'],'	imageurl'=>$_GPC['menuimg'],'orderid'=>$_GPC['orderid']);
		$up = pdo_update('mii_ang_menu',$data,array('id'=>$mid));
		if($up){
			$code = array('status'=>'1','msg'=>'保存成功');
			exit(json_encode($code));			
		}else{
			$code = array('status'=>'2','msg'=>'保存失败');
			exit(json_encode($code));			
		}
	}else{
		$code = array('status'=>'2','msg'=>'没有操作权限');
		exit(json_encode($code));
	}

?>